package com.atguigu.gmall.item;


import com.atguigu.gmall.cache.MallCacheAutoConfiguration;
import com.atguigu.gmall.common.config.pool.annotation.EnableAppThreadPool;
import com.atguigu.gmall.common.exception.EnableAutoExceptionHandle;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;


/**
 * SpringBoot 只扫描主配置类所在 包以及子包下的所有组件
 * feign客户端所在包:   com.atguigu.gmall.feign.product
 * 主程序所在包：       com.atguigu.gmall.item.xxx
 * 由于抽取以后，不是主程序所在的子包了，导致feign没有扫描到
 */
@EnableFeignClients(basePackages = {
        "com.atguigu.gmall.feign.product",
        "com.atguigu.gmall.feign.search",
        "com.atguigu.gmall.feign.ware"
})
@EnableAppThreadPool
@EnableAutoExceptionHandle
@SpringCloudApplication
public class ItemMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(ItemMainApplication.class,args);
    }
}
